package com.register.client.domian;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 服务请求
 */
@Component
public class RegisterRequest {

    /**
     * ip
     */

    private String ip;
    /**
     * 服务名
     */
    @Value("${spring.application.name}")
    private String serviceName;
    /**
     * 主机名
     */
    private String hostName;
    /**
     * 端口号
     */
    @Value("${server.port}")
    private int port;

    /**
     * 服务实例id
     */
    private String serviceInstanceId;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getHostName() {
        return hostName;
    }

    public void setHostName(String hostName) {
        this.hostName = hostName;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getServiceInstanceId() {
        return serviceInstanceId;
    }

    public void setServiceInstanceId(String serviceInstanceId) {
        this.serviceInstanceId = serviceInstanceId;
    }
}
